package group2assignone.ucm.manager;

import group2assignone.model.Flight;
import group2assignone.ucm.UCController;
import group2assignone.view.manager.EditFlightView;

/**
 * use case controller to go back from editing a flight
 * @author group2
 */
public class UCEditFlightBack implements UCController {

    private EditFlightView editView = new EditFlightView();
    private Flight f;// = new Flight();

    /**
     * sets view and flight
     * @param eView
     * @param flight
     */
    public UCEditFlightBack(EditFlightView eView, Flight flight) {
        editView = eView;
        f = flight;
    }

    @Override
    public void run() {
        //go back to flight selection
        editView.clearShowFlightWindow();
        editView.go();

    }
}
